<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>JSON</h1>
	</body>

	<script>
		let obj = {
			x: 1,
			y: 2,
			name: 'mrc'
		}
		
		let string = JSON.stringify(obj);
		console.log(string,typeof string)
			
		let opt = '{"x":1,"y":2,"name":"mrc"}';
		let desc = JSON.parse(opt);
		console.log(desc,typeof desc);
	</script>

</html>
